import request from '@/utils/request'

/** 本级客户池  */
export function atTeamCustomerList(query) {
  return request({
    url: '/teamCustomer/atTeamCustomer',
    method: 'get',
    params: query
  })
}

/** 团队用户  */
export function teamUserList(query) {
  return request({
    url: '/teamCustomer/teamUserList',
    method: 'get',
    params: query
  })
}

/** 团队用户不分页 */
export function queryInfoListTeam(query) {
  return request({
    url: '/teamCustomer/queryInfoList',
    method: 'get',
    params: query
  })
}

/** 团队客户转移  */
export function teamCustomerTransfer(data) {
  return request({
    url: '/teamCustomer/teamCustomerTransfer',
    method: 'post',
    data: data
  })
}

export function teamCustomerTransferToUser(data) {
  return request({
    url: '/teamCustomer/teamCustomerTransferToUser',
    method: 'post',
    data: data
  })
}

export function teamCustomerTransferToDept(data) {
  return request({
    url: '/teamCustomer/teamCustomerTransferToDept',
    method: 'post',
    data: data
  })
}

